<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>

<script type="text/javascript" src="js/jquery-1.11.3.js"></script>
<script type="text/javascript">
	$(function() {
		$.ajax({
			url : "PlanOperationAction.action",
			data : {
				"msg" : "combineQuery",
				"id" : "0",
				"name" : "",
				"content" : "",
				"sign" : "",
				"syspara_id" : "0",
				"personnel_id" : "0",
				"type_id" : "0",
				"begintime" : "2000-01-01",
				"endtime" : "2000-01-01"
			},
			dataType : "json",
			success : function(data) {
				console.log(data);
			}
		});
	});
	
</script>

<body>
<div>这是组合查询计划的页面！</div>
<button id="add">新增</button>
<button id="update">修改</button>
<button id="delete">删除</button>
</body>

<script type="text/javascript">
	$("#add").click(function(){
		$.ajax({
			url : "PlanOperationAction.action",
			data : {
				"msg" : "add",
				"name" : "testaddddd",
				"content" : "addddddd",
				"sign" : "年度",
				"syspara_id" : "2",
				"personnel_id" : "2",
				"type_id" : "2",
				"begintime" : "1996-01-01",
				"endtime" : "2008-01-01"
			},
			dataType : "json",
			success : function(data) {
				console.log(data);
			}
		});	
	});
	$("#delete").click(function(){
		$.ajax({
			url : "PlanOperationAction.action",
			data : {
				"msg" : "delete",
				"id" : "5"
			},
			dataType : "json",
			success : function(data) {
				console.log(data);
			}
		});	
	});
	$("#update").click(function(){
		$.ajax({
			url : "PlanOperationAction.action",
			data : {
				"msg" : "update",
				"id" : "6",
				"name" : "updatee",
				"content" : "updateeeeeeeee",
				"sign" : "年度",
				"syspara_id" : "3",
				"personnel_id" : "3",
				"type_id" : "3",
				"begintime" : "2002-01-01",
				"endtime" : "2003-01-01"
			},
			dataType : "json",
			success : function(data) {
				console.log(data);
			}
		});	
	});
</script>
</html>